<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-wrap align-center justify-between benben-position-layout flex baomingjilu_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center baomingjilu_fd0_0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <image class='baomingjilu_fd0_0_c0'  mode="aspectFit"  :src='STATIC_URL+"234.png"'></image>
</view>
<text class='baomingjilu_fd0_1'  >报名记录</text>
    <view   class='flex flex-wrap align-center baomingjilu_fd0_0'      >
        </view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout"    >
        <view>
        <benben-flex-tabs class-name='baomingjilu_benbenTabsfd1_0'  v-model="tabs" ref="benben_tabsfd1_0" select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false' :open-sticky='true' :top='0' :is-show-content='false' :scrollspy='false'  :tabs-info.sync="tabsInfofd1_0" @change="prizesRecordFunc()" >
            
                    <scroll-view
          @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft"
          id="benben_tabsfd1_0"
          class="benben-tabs"
          style="width:750rpx"
          :scroll-x="true"
          :scroll-left.sync="tabsInfofd1_0.moveX"
          scroll-with-animation="all .3s ease"
        >
          <view class="benben-tabs-content" id="benben_tabsfd1_0-content">
            <view id="benben_tabsfd1_0-title" class="benben-tabs-title flex flex align-center justify-around">
                        <view 
                :class="{ 'checkTitlefd1_0': tabs == '0', 'flex flex-wrap align-center': true }"
                @tap="tabs = '0'"
                :id="`benben_tabsfd1_0-title-item-${'0'}`"
                
                
              >
                
<text class='baomingjilu_titleItemfd1_0_c3_c0'  >全部</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == '4', 'flex flex-wrap align-center': true }"
                @tap="tabs = '4'"
                :id="`benben_tabsfd1_0-title-item-${'4'}`"
                
                
              >
                
<text class='baomingjilu_titleItemfd1_0_c3_c0'  >待开始</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == '2', 'flex flex-wrap align-center': true }"
                @tap="tabs = '2'"
                :id="`benben_tabsfd1_0-title-item-${'2'}`"
                
                
              >
                
<text class='baomingjilu_titleItemfd1_0_c3_c0'  >进行中</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == '1', 'flex flex-wrap align-center': true }"
                @tap="tabs = '1'"
                :id="`benben_tabsfd1_0-title-item-${'1'}`"
                
                
              >
                
<text class='baomingjilu_titleItemfd1_0_c3_c0'  >已结束</text>

              </view>
            </view>
            <view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}" id="benben_tabsfd1_0-line" class="benben-tabs-line flex benben-flex-tabs-line baomingjilu_linefd1_0"></view>
          </view>
        </scroll-view>
            
        </benben-flex-tabs>
        
</view>
    <view   class='flex flex-direction align-stretch baomingjilu_fd1_1'      >
            <view   class='flex flex-wrap align-center justify-between baomingjilu_fd1_1_c0'      >
        <text class='baomingjilu_fd1_1_c0_c0'  >报名时间：2023-10-19 10:20</text>
<text class='baomingjilu_fd1_1_c0_c1'  >待开始</text>
</view>
    <view   class='flex flex-wrap align-center baomingjilu_fd1_1_c1'      >
            <view   class='flex flex-wrap align-center baomingjilu_fd1_1_c1_c0'      >
        <image class='baomingjilu_fd1_1_c1_c0_c0'  mode="aspectFill"  :src='STATIC_URL+"40.png"'></image>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch baomingjilu_fd1_1_c1_c1'      >
        <text class='baomingjilu_fd1_1_c1_c1_c0'  >#特色美食</text>
<text class='baomingjilu_fd1_1_c1_c1_c1'  >游戏截止时间：2023-12-31</text>
</view>
</view>
    <view   class='flex flex-wrap align-center self-end'      >
            <view   class='flex flex-wrap align-center baomingjilu_fd1_1_c2_c0'      >
        <text   >发布互动游戏</text>
</view>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
<benben-popup v-model="popupShow1679879039621" :mask="true" :mask-close-able="true"  mode='bottom' >
    <!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout baomingjilu_flex_2"    >
            <view   class='flex flex-wrap align-center justify-center baomingjilu_fd2_0'      >
        <image class='baomingjilu_fd2_0_c0'  mode="aspectFit"  :src='STATIC_URL+"127.png"'></image>
<text class='baomingjilu_fd2_0_c1'  >申请发货</text>
<image class='baomingjilu_fd2_0_c0'  mode="aspectFit"  :src='STATIC_URL+"128.png"'></image>
<image class='baomingjilu_fd2_0_c3'  mode="aspectFit"  :src='STATIC_URL+"283.png"' @tap.stop="popupShow1679879039621=false" ></image>
</view>
    <view   class='flex flex-direction flex-wrap align-center baomingjilu_fd2_1'      >
        <image class='baomingjilu_fd2_1_c0'  mode="aspectFit"  :src='shopinfo.details_img'></image>
<text class='baomingjilu_fd2_1_c1'  >{{shopinfo.details_name}}</text>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
        <text class='baomingjilu_fd2_1_c1'  >收货地址</text>
    <view   class='flex flex-wrap align-center baomingjilu_fd2_2_c1'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/address/address?is_change=1`" v-if= " dataList.length!=0"  >
        <image class='baomingjilu_fd2_2_c1_c0'  mode="aspectFit"  :src='STATIC_URL+"139.png"'></image>
    <view   class='flex flex-direction flex-wrap align-stretch flex-sub baomingjilu_fd2_2_c1_c1'      >
            <view   class='flex flex-wrap align-center baomingjilu_fd2_2_c1_c1_c0'      >
            <view   class='flex flex-wrap align-center baomingjilu_fd2_2_c1_c1_c0_c0'      >
        <text class='baomingjilu_fd2_2_c1_c1_c0_c0_c0'  >{{addressMessage.label_name}}</text>
</view>
<text class='baomingjilu_fd2_2_c1_c1_c0_c1'  >{{addressMessage.real_name}}</text>
<text class='baomingjilu_fd2_1_c1'  >(</text>
<text class='baomingjilu_fd2_1_c1'    v-if= "addressMessage.sex=='1'"  >先生</text><text class='baomingjilu_fd2_1_c1'    v-if= "addressMessage.sex!='1'"  >女士</text>
<text class='baomingjilu_fd2_1_c1'  >)</text>
<text class='baomingjilu_fd2_2_c1_c1_c0_c5'  >{{addressMessage.mobile}}</text>
</view>
    <view        >
        <text class='baomingjilu_fd2_2_c1_c1_c1_c0'  >{{addressMessage.province}}</text>
<text class='baomingjilu_fd2_2_c1_c1_c1_c0'  >{{addressMessage.city}}</text>
<text class='baomingjilu_fd2_2_c1_c1_c1_c0'  >{{addressMessage.district}}</text>
<text class='baomingjilu_fd2_2_c1_c1_c1_c0'  >{{addressMessage.detail}}</text>
</view>
</view>
<image class='baomingjilu_fd2_2_c1_c2'  mode="aspectFit"  :src='STATIC_URL+"285.png"'></image>
</view>
<benben-empty :list-data="dataList">
<view class='flex flex-direction flex-wrap align-center baomingjilu_fd2_2_c2' >
<image class='baomingjilu_fd2_2_c2_c0'  mode="widthFix"  :src='STATIC_URL+"178.png"'></image>

</view>
</benben-empty>
</view>
<button class='baomingjilu_fd2_3'  @tap.stop="shenqingyoujiFunc()" v-if= " dataList.length!=0" >申请邮寄</button><button class='baomingjilu_fd2_3'  @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/address/address?is_change=1`" v-if= " dataList.length==0" >添加地址</button>
</view>
        
<!---flex布局flex布局结束-->
    
</benben-popup>
<benben-popup v-model="popupShow1679879191859" :mask="true" :mask-close-able="true"  mode='center' >
    <!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout baomingjilu_flex_3"    >
            <view   class='flex flex-direction flex-wrap align-stretch baomingjilu_fd3_0'      >
            <view   class='flex flex-direction flex-wrap align-center baomingjilu_fd3_0_c0'      >
        <text class='baomingjilu_fd3_0_c0_c0'  >提交成功</text>
<text class='baomingjilu_fd3_0_c0_c1'  >发货申请提交成功，请耐心等待。如有疑问，可联系客服咨询。</text>
</view>
    <view   class='flex flex-direction flex-wrap align-center baomingjilu_fd3_0_c1'   @tap.stop="popupShow1679879191859=false"   >
        <text class='baomingjilu_fd3_0_c1_c0'      >知道了</text>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"popupShow1679879191859":false,"popupShow1679879039621":false,"tabsInfofd1_0":{ lineleft: '', lineWidth: '', moveX: 0, scrollX: 0, PageScrollX: 0 },"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"tabs":"0","cut":"1","dataMessage":[],"dataList":[],"shopinfo":{"id":"","details_img":"","details_name":""},"addressMessage":{"aid":"","mobile":"","label_name":"","sex":"","province_id":"","is_default":"","province":"","city":"","city_id":"","district":"","district_id":"","create_time":"","real_name":"","address_code":"","detail":"","address_code_province":"","address_code_city":"","address_code_district":"","lng":"","lat":"","address_code_area":"","address_code_area_str":""},"address_id":""};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.diyPageListen()
		},
        onUnload() {
            this.diyOffPageListen()    
        },
		onReady(){
            
		},
		onShow(){
            this.prizesRecordFunc()
this.getListFunc()
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.prizesRecordFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //获取申请邮寄信息
                 getShopinfoFunc(item){
                       this.shopinfo = item;
    this.popupShow1679879039621 = true;
                },
                //获取默认地址列表
                async getListFunc(){
                        this.addressMessage = ''
    //请求方法
    //数据验证
    
  let datadataList = await this.$api.get(global.apiUrls.post636f7683cf195, {
    
  });
  
  if (datadataList.data.code != 1) {
    this.$message.info(datadataList.data.msg);
    return
  } 
  let infodataList = datadataList.data.data;
  this.dataList = infodataList.data
  
    if (this.dataList && this.dataList.length > 0) {
					this.address_id = this.dataList[0].aid;
                    this.addressMessage = this.dataList[0];
                }
                    this.getAddressFuncFunc()
                },
                //申请邮寄
                async shenqingyoujiFunc(){
                        //请求方法
    //数据验证
    
  let data641850c8714f7 = await this.$api.post(global.apiUrls.post641850c8714f7, {
    id:this.shopinfo.id,address_id:this.address_id
  });
  
  if (data641850c8714f7.data.code != 1) {
    this.$message.info(data641850c8714f7.data.msg);
    return
  } 
  
  
  
    this.popupShow1679879039621 = false;
    this.popupShow1679879191859 = true;
                },
                //转盘抽奖-奖品记录
                 prizesRecordFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post64184ea084828;
                this.pageingListApiMethod = 'post';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {type:this.tabs}
                this.listData = [];
                this.dataMessage = this.listData;
                this.pagingListToggle();
                
                },
                //获取单个地址
                 getAddressFuncFunc(){
                        this.dataList.forEach((item) => {
                    if (item.aid == this.address_id) {
                        this.addressMessage = item
                    }
                })
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                },
    //页面监听
    diyPageListen() {
                  uni.$on('isokaddid',(data) => {
                  this.address_id = data;
          });
    }                     ,
    //注销页面监听
    diyOffPageListen() {
                     uni.$off('isokaddid');
    }                     
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:rgba(246, 247, 249, 1);background-size: 100% auto;
        }
    .baomingjilu_flex_0{
        border-bottom:1px solid rgba(230, 230, 230, 1);background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .baomingjilu_fd0_1{
        color:#333333;font-size:36rpx;font-weight:500;line-height:50rpx;
    }
    .baomingjilu_fd0_0_c0{
        width:20rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 0rpx 0rpx 32rpx;
    }
    .baomingjilu_fd0_0{
        width:100rpx;height:88rpx;
    }
    .baomingjilu_fd1_1_c2_c0{
        border:1px solid #BFBFBF;background:#FFFFFF;border-radius:28rpx;height:56rpx;margin:24rpx 0rpx 0rpx 0rpx;padding:0rpx 12rpx 0rpx 12rpx;line-height:56rpx;
    }
    .baomingjilu_fd1_1_c1_c1_c1{
        color:#999999;font-size:24rpx;font-weight:500;margin:10rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd1_1_c1_c1_c0{
        color:#333333;font-size:32rpx;font-weight:700;
    }
    .baomingjilu_fd1_1_c1_c1{
        margin:0rpx 0rpx 0rpx 32rpx;
    }
    .baomingjilu_fd1_1_c1_c0_c0{
        width:112rpx;height:112rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd1_1_c1_c0{
        width:112rpx;height:112rpx;
    }
    .baomingjilu_fd1_1_c1{
        border-bottom:2px solid rgba(238, 238, 238, 1);padding:0rpx 0rpx 24rpx 0rpx;
    }
    .baomingjilu_fd1_1_c0_c1{
        color:#FF8533;font-size:28rpx;font-weight:500;
    }
    .baomingjilu_fd1_1_c0_c0{
        color:#333333;font-size:28rpx;font-weight:500;
    }
    .baomingjilu_fd1_1_c0{
        line-height:88rpx;
    }
    .baomingjilu_fd1_1{
        background:var(--benbenbgColor1);padding:0rpx 32rpx 32rpx 32rpx;border-radius:16rpx;width:705rpx;margin:20rpx auto 0rpx auto;background-size:100% auto;
    }
    .baomingjilu_titleItemfd1_0_c3_c0{
        font-size:32rpx;font-weight:400;line-height:45rpx;
    }
    .baomingjilu_linefd1_0{
        background:var(--benbenbgColor7);width:40rpx;height:6rpx;top:80rpx;background-size:100% auto !important;border-radius:16rpx;
    }
    .checkTitlefd1_0{
        font-weight:700 !important;font-size:32rpx !important;color:rgba(51, 51, 51, 1) !important;background-color:rgba(255, 255, 255, 1) !important;
    }
    ::v-deep .baomingjilu_benbenTabsfd1_0{
        background:#fff;width:750rpx;height:90rpx;white-space:nowrap;text-align:center;color:rgba(102, 102, 102, 1);
    }
    .baomingjilu_flex_2{
        background:#FFFFFF;border-radius:24rpx 24rpx 0rpx 0rpx;padding:40rpx 32rpx 32rpx 32rpx;
    }
    .baomingjilu_fd2_3{
        background:var(--benbenbgColor7);border-radius:44rpx 44rpx 44rpx 44rpx;font-size:32rpx;color:#fff;width:686rpx;height:80rpx;line-height:80rpx;margin:40rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_2_c2_c0{
        width:400rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_2_c2{
        width:100%;padding:50rpx 0rpx 50rpx 0rpx;
    }
    .baomingjilu_fd2_2_c1_c2{
        width:12rpx;height:22rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c1_c0{
        color:#666666;font-size:28rpx;font-weight:400;line-height:40rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c0_c5{
        color:#333333;font-size:32rpx;font-weight:500;line-height:39rpx;margin:0rpx 0rpx 0rpx 32rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c0_c1{
        color:#333333;font-size:32rpx;font-weight:500;line-height:45rpx;margin:0rpx 0rpx 0rpx 16rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c0_c0_c0{
        color:#698BFF;font-size:24rpx;font-weight:500;line-height:33rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c0_c0{
        border:1px solid #698BFF;background:rgba(105,139,255,0.08);border-radius:8rpx 8rpx 8rpx 8rpx;padding:1rpx 16rpx 0rpx 16rpx;
    }
    .baomingjilu_fd2_2_c1_c1_c0{
        margin:0rpx 0rpx 16rpx 0rpx;
    }
    .baomingjilu_fd2_2_c1_c1{
        margin:0rpx 37rpx 0rpx 24rpx;
    }
    .baomingjilu_fd2_2_c1_c0{
        width:60rpx;height:60rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_2_c1{
        border:1px solid #EEEEEE;background:#FFFFFF;border-radius:8rpx 8rpx 8rpx 8rpx;padding:32rpx 32rpx 27rpx 24rpx;margin:16rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_1_c1{
        color:#333333;font-size:32rpx;font-weight:500;line-height:45rpx;
    }
    .baomingjilu_fd2_1_c0{
        width:164rpx;height:164rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 0rpx 32rpx 0rpx;
    }
    .baomingjilu_fd2_1{
        padding:48rpx 0rpx 48rpx 0rpx;
    }
    .baomingjilu_fd2_0_c3{
        width:40rpx;height:40rpx;border-radius:0rpx 0rpx 0rpx 0rpx;position:absolute;top:-10rpx;right:0rpx;
    }
    .baomingjilu_fd2_0_c1{
        color:#333333;font-size:36rpx;font-weight:500;line-height:50rpx;margin:0rpx 24rpx 0rpx 24rpx;
    }
    .baomingjilu_fd2_0_c0{
        width:32rpx;height:10rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .baomingjilu_fd2_0{
        position:relative;
    }
    .baomingjilu_flex_3{
        padding:0rpx 105rpx 0rpx 105rpx;
    }
    .baomingjilu_fd3_0_c1_c0{
        color:var(--benbenFontColor5);font-size:32rpx;font-weight:500;line-height:45rpx;
    }
    .baomingjilu_fd3_0_c1{
        padding:33rpx 0rpx 32rpx 0rpx;
    }
    .baomingjilu_fd3_0_c0_c1{
        color:#333333;font-size:28rpx;font-weight:400;line-height:46rpx;text-align:center;
    }
    .baomingjilu_fd3_0_c0_c0{
        color:#333333;font-size:32rpx;font-weight:500;line-height:45rpx;margin:0rpx 0rpx 40rpx 0rpx;
    }
    .baomingjilu_fd3_0_c0{
        border-bottom:1px solid rgba(238, 238, 238, 1);padding:40rpx 30rpx 32rpx 30rpx;
    }
    .baomingjilu_fd3_0{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
</style>